<%@ page language="java" import="java.util.*,java.text.*" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
	<%!String formatDate(Date d) {
		SimpleDateFormat formater = new SimpleDateFormat("yyyy年MM月dd日");
		return formater.format(d);
	}%>
	<%!int num = 0;

synchronized int add() {
	return num++;
}%>
	<%=formatDate(new Date())%>
	<%=add()%>
</body>
</html>